package in.muton.wicket.extensions.upload;

import org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadInfo;

public class UploadProcessInfo extends UploadInfo {

	private static final long serialVersionUID = 7538965197730106085L;
	
	public static final int PROCESSING_NOT_STARTED = 0;
	public static final int PROCESSING_STARTED = 1;
	public static final int PROCESSING_ENDED = 2;
	public static final int PROCESSING_FAILED = 3;

	private int processingStatus;

	public UploadProcessInfo(int totalBytes) {
		super(totalBytes);
		processingStatus = PROCESSING_NOT_STARTED;
	}

	public void setProcessingStatus(int processingStatus) {
		this.processingStatus = processingStatus;
	}

	public int getProcessingStatus() {
		return processingStatus;
	}

}
